﻿<phone:PhoneApplicationPage 
    x:Class="ActivityTracker.AddNewSchedule"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:my="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="728" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False"
    Loaded="PhoneApplicationPage_Loaded">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="{StaticResource bipivot}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Margin="0,17,0,18">
            <TextBlock x:Name="ApplicationTitle" Foreground="White" Text="ACTIVITY TRACKER - SCHEDULE AN ACTIVITY" Style="{StaticResource PhoneTextNormalStyle}"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Width="470" Grid.Row="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <TextBlock Grid.Row="0" Text="Activity Name" Foreground="White" Style="{StaticResource PhoneTextTitle2Style}" ></TextBlock>
            <TextBox Grid.Row="1" x:Name="txtblkactivity" Foreground="White" IsReadOnly="True"></TextBox>
            <StackPanel Grid.Row="2" x:Name="stkpnldate" Margin="0,10,0,0">
                <StackPanel Orientation="Horizontal">
                    <TextBlock x:Name="tblkSchedule" Foreground="White" Text="Schedule Type" Style="{StaticResource PhoneTextTitle2Style}"></TextBlock>
                    <TextBlock x:Name="tblkScheduleValidation"  Text="*Required" Style="{StaticResource PhoneTextTitle3Style}" VerticalAlignment="Bottom" Foreground="Red" Visibility="Collapsed" ></TextBlock>
                </StackPanel>
                <TextBox x:Name="tblkScheduleType" Foreground="White" Text="{Binding}" IsReadOnly="True" MouseLeftButtonDown="tblkSchedType_MouseLeftButtonDown"></TextBox>
            </StackPanel>
            <TextBlock Grid.Row="3" Foreground="White" x:Name="txtblkstart" Text="Start Date Time" Style="{StaticResource PhoneTextTitle2Style}" Margin="12,0,175,0"></TextBlock>
            <StackPanel Grid.Row="4" x:Name="stkpnlstartdate" Orientation="Horizontal">
                <toolkit:DatePicker Foreground="White" x:Name="DPstart" Width="233" Margin="3,0,0,0" ></toolkit:DatePicker>
                <toolkit:TimePicker Foreground="White" x:Name="Dpstarttime" Width="233"></toolkit:TimePicker>
            </StackPanel>
            <TextBlock Grid.Row="5" Foreground="White" x:Name="txtblkend" Text="End Date Time" Style="{StaticResource PhoneTextTitle2Style}" ></TextBlock>
            <StackPanel Grid.Row="6" x:Name="stkpnlenddate" Orientation="Horizontal">
                <toolkit:DatePicker Foreground="White" x:Name="DPend" Width="233" Margin="3,0,0,0"></toolkit:DatePicker>
                <toolkit:TimePicker Foreground="White" x:Name="Dpendtime" Width="233"></toolkit:TimePicker>
            </StackPanel>
            <StackPanel Margin="0,75,0,0" Grid.Row="7" >
                <my:AdControl Margin="0,38,0,0" Height="80" HorizontalAlignment="Center" x:Name="adControl3" VerticalAlignment="Top" Width="480" ApplicationId="c8736437-6eec-403e-b9d4-333c4e6794d1" AdUnitId="28360" IsAutoRefreshEnabled="True" BorderBrush="Transparent"/>
            </StackPanel>
        </Grid>
    </Grid>
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar.save.rest.png" Text="save"  Click="AppBarSave_Click"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar.questionmark.rest.png" Text="help" Click="AppBarHelp_Click"/>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
</phone:PhoneApplicationPage>
